Skip to content

Conversation

@morsh3d
Copy link
Contributor

@morsh3d morsh3d commented Sep 10, 2025

What

This PR is to implement the bug-fix raised in the ticket NIAD-3216.

When testing NIAD-3213, it was observed that SystemOne displays the "Specimen ID": of "DUMMY".

Why

This looks inappropriate within the patient's record. The logic is fine and so it will be changed to "Not present" instead.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • I have performed a self-review of my code
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have updated the Changelog with details of my change in the UNRELEASED section if this change will affect end users

@ORybak5 ORybak5 marked this pull request as ready for review September 22, 2025 10:33
@ORybak5 ORybak5 requested a review from a team as a code owner September 22, 2025 10:33
return nonFilingObservations;
}

private Specimen generateDummySpecimen(DiagnosticReport diagnosticReport) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we're not using "DUMMY" anymore, should this be renamed as well?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @Jonopono123, that's a good suggestion, I will rename it

Copy link
Collaborator

@MartinWheelerMT MartinWheelerMT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've approved this as it solves the scope of the ticket, however there a still a lot of places in codebase referring to the term DUMMY which I'd like to see removed also.

@github-actions
Copy link

  • Surviving mutants in this change: 1
  • Killed mutants in this change: 16
class surviving killed
🧟uk.nhs.adaptors.gp2gp.ehr.mapper.diagnosticreport.DiagnosticReportMapper 1 16

See https://pitest.org

@sonarqubecloud
Copy link

@MartinWheelerMT MartinWheelerMT merged commit 39ea7da into main Sep 25, 2025
27 checks passed
@MartinWheelerMT MartinWheelerMT deleted the NIAD-3216-remove-dummy-from-specimen branch September 25, 2025 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants